package com.lusang.gift.service.impl;

import com.lusang.gift.domain.LoginUser;
import com.lusang.gift.mapper.LoginUserMapper;
import com.lusang.gift.service.ILoginUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dingyom
 * @since 2022-10-10
 */
@Service
public class LoginUserServiceImpl extends ServiceImpl<LoginUserMapper, LoginUser> implements ILoginUserService {

    @Autowired
    private LoginUserMapper loginUserMapper;
    @Override
    public Long add(LoginUser loginUser) {
        loginUserMapper.insert(loginUser);
        return loginUser.getId();
    }
}
